package com.example.sys.ai.service;


import com.example.sys.ai.dto.BankCard;
import com.example.sys.ai.dto.BusinessLicense;
import com.example.sys.ai.dto.Face;
import com.example.sys.ai.dto.IDCard;
import org.springframework.context.ApplicationContext;
import org.springframework.data.redis.core.RedisTemplate;

/***
 *
 * ai实现接口
 */
public interface SysAiHandler {

    public ApplicationContext getApplicationContext();

    public RedisTemplate<String, String> getRedisTemplate();

    public String getToken();

    public IDCard.Front idCardFront(byte[] imgData) throws Exception;

    public IDCard.Back idCardBack(byte[] imgData) throws Exception;

    public BankCard bankCard(byte[] imgData) throws Exception;

    public BusinessLicense businessLicense(byte[] imgData) throws Exception;

    public Face face(byte[] imgData, String name, String code) throws Exception;
}
